package org.jsbd.boss.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.dao.IRetentImsiUseCountDAO;
import org.jsbd.boss.domian.DaylimitBeanVO;
import org.jsbd.boss.domian.statistics.RetentImsiUseCountVO;
import org.springframework.stereotype.Repository;

@Repository("retentImsiUseCountDAO")
public class RetentImsiUseCountDAOImpl extends CrackStatisticsBaseDao implements IRetentImsiUseCountDAO {

	@Override
	public Map<String, Object> selectListWithPage(DataGridModel page, RetentImsiUseCountVO retentImsiUseCountVO) {
		retentImsiUseCountVO = (retentImsiUseCountVO == null ? new RetentImsiUseCountVO() : retentImsiUseCountVO);
		retentImsiUseCountVO.setPageInfo(page);
		Map<String, Object> results = new HashMap<String, Object>();
	    results.put("total", super.queryForCount("qy_retent_imsi_use_count.SELECT_COUNT_WITH_CONDITION", retentImsiUseCountVO));
	    results.put("rows", super.queryForList("qy_retent_imsi_use_count.SELECT_LIST_WITH_CONDITION", retentImsiUseCountVO));
	    return results;
	}

}
